package com.woniu.service;

import com.woniu.entity.PageResult;
import com.woniu.pojo.Order;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.vo.*;


import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author QiuPeng
 * @since 2022-10-12
 */
public interface IOrderService extends IService<Order> {

    /**
     *   搜索加分页查询
     * @param orderPageVo
     * @param currentPage
     * @param pageSize
     * @return
     */
    PageResult selectByPageAndLikeSearch(OrderPageVo orderPageVo, Integer currentPage, Integer pageSize);




    /**
     * 生成订单的结算确认信息
     *
     *
     */
    ClientGoodsOrderVo GenerateGoodsOrder(SettlementConfirmationOrderVo settlementConfirmationOrderVo, String memberId, double discount);

    List<QueryMemberOrderVo> getByMemberId(String memberId);


    /**
     * 订单支付页面 和生成订单
     *
     * @param clientGoodsOrderVo
     *  删除订单的详细和删除订单
     * @param
     * @return
     */
    PaymentOrderPageVo paymentGoodsOrder(ClientGoodsOrderVo clientGoodsOrderVo, String memberId);

}
